package com.browner.helloworld;
import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		String subject = getSubject();
		System.out.println("Hello "+subject+"!");
	}
	
	static String getSubject() {
		System.out.print("Who would you like to say hello to?\n> ");
		Scanner in = new Scanner(System.in);
		String result = in.nextLine();
		in.close();
		return result;
	}
	
}